package com.itheima.jdk8date;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/*
LocalDateTime
LocalDate
LocalTime
 */
public class Demo07 {

    public static void main(String[] args) {
        System.out.println(LocalDateTime.now());
        System.out.println(LocalDate.now());
        System.out.println(LocalTime.now());
        LocalDate of = LocalDate.of(2080, 10, 31);
        System.out.println(of);
        System.out.println(LocalTime.of(23, 59, 59));
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now.toLocalDate());
        System.out.println(now.toLocalTime());


    }
}
